CXX = g++
CXXFLAGS = -std=c++11 -Wall

TARGET = booking_system
SRCS = main.cpp systemUI.cpp ticket.cpp time.cpp order.cpp
OBJS = $(SRCS:.cpp=.o)
HEADERS = systemUI.h ticket.h time.h order.h

$(TARGET): $(OBJS)
	$(CXX) $(OBJS) -o $(TARGET)

%.o: %.cpp $(HEADERS)
	$(CXX) $(CXXFLAGS) -c $< -o $@

.PHONY: clean
clean:
	rm -f $(OBJS) $(TARGET) 